import request from '@/utils/request'


// 执行AdeLab
export function executeLab(id) {
  return request({
    url: '/ade/lab/execute/' + id,
    method: 'put'
  })
}


// 查询AdeLab列表
export function listLab(query) {
  return request({
    url: '/ade/lab/list',
    method: 'get',
    params: query
  })
}

// 查询AdeLab详细
export function getLab(id) {
  return request({
    url: '/ade/lab/' + id,
    method: 'get'
  })
}

// 新增AdeLab
export function addLab(data) {
  return request({
    url: '/ade/lab',
    method: 'post',
    data: data
  })
}

// 修改AdeLab
export function updateLab(data) {
  return request({
    url: '/ade/lab',
    method: 'put',
    data: data
  })
}

// 删除AdeLab
export function delLab(id) {
  return request({
    url: '/ade/lab/' + id,
    method: 'delete'
  })
}
